#include "Blocks.h"

Block* allocateBlockByID(int x, int y, int ID) {
    switch (ID) {
    case STONE:
        return new StoneBlock(x, y);
    case COBBLESTONE:
        return new CobblestoneBlock(x, y);
    case DIRT:
        return new DirtBlock(x, y);
    case BEDROCK:
        return new BedrockBlock(x, y);
    }
    return new StoneBlock(x, y);
}